# 添加目录
set(common_dir ../Common)

# 添加头文件路径
include_directories(${common_dir} )

# 添加源文件
add_library( ffrecorder

             SHARED

             # 通用类
             ${common_dir}/AVFrameFilter.cpp
             ${common_dir}/AVMediaWriter.cpp
             ${common_dir}/AVFormatter.cpp
             ${common_dir}/AVMediaData.cpp
             ${common_dir}/YuvConvertor.cpp
             ${common_dir}/YuvData.cpp

             # 录制器
             FFMediaRecorder.cpp
             RecordParams.cpp
             com_cgfay_media_recorder_FFMediaRecorder.cpp)

# 链接静态库
target_link_libraries( ffrecorder

                       ffmpeg
                       yuv

                       android
                       jnigraphics
                       log )

